#ifndef CONTROLBAR_H
#define CONTROLBAR_H
#include <QSlider>
#include <QPushButton>
#include <QWidget>
#include <QLabel>
#include <QHBoxLayout>
#include "videoplayer.h"
#include <QTime>

class ControlBar : public QWidget
{
    Q_OBJECT

    public:
        explicit ControlBar(QWidget *parent = 0);

    signals:
        void changeVideoTimeTo(int newTime);

    public slots:
        void updateControlBar(int newtime);
        void initNewSong(int length);
        void onTimeChange(int newTime);
        void resumePause();

    private:
        QSlider* timeSlider;
        QLabel* timeLabel;
        QPushButton* StartStopButton;
        QPushButton* nextButton;
        QPushButton* previousButton;
        QTime clock;
    
};

#endif // CONTROLBAR_H
